#!/usr/bin
while read line
do
	arr=($line)

	std_hour=${arr[1]:0:2}
	date=${arr[0]}
	guid=${arr[2]}

	#echo "hours $std_hour"
	#echo "date $date"
	#echo "date $date guid $guid"

	find /data/game/server/log/db/ -name "behavior_$date.log" | xargs grep $guid | awk -F: -v hours=$std_hour '{split($1,hour," "); {if(hour[2] <= hours) {if(hour[2] >= hours-1) print hour[2] " " hours " " $0;}}}' > tw_01_logout_behavior.txt
done < tw-01-newone.txt







